package model

type UserInfo struct {
	ID       uint   `gorm:"primary_key" json:"-"`
	Uid      uint
	Level    int    `gorm:"default:'0'"`
	NickName string
	Phone    string `gorm:"size:11"`
	Coin     int    `gorm:"default:'0'"`
	Address  string
}

const (
	UnderNormal = iota
	Normal
	OutStanding
	Vip
	SuperVip
)

func (UserInfo) TableName() string {
	return "user_info"
}
